Completed
Push — master ( c07bcf...30e72a )
by Dimas
08:58
created

jQueryPlugin-smartform.ts ➔ smartform   F

Complexity

Conditions 14

Size

Total Lines 13
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 14
eloc 7
dl 0
loc 13
rs 3.6
c 0
b 0
f 0

How to fix   Complexity   

Complexity

Complex classes like jQueryPlugin-smartform.ts ➔ smartform often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.

Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.

1
import { formSaver } from "./smartform/src/js/formSaver";
2